<template>
    <div>
        <pagetitle></pagetitle>
        <el-card>
            <el-form :model="pageData" class="formbox" label-width="140px" :disabled="formDisabled" label-position="right">
                <div class="formboxitem">
                    <div class="title">新增土地资源</div>
                    <el-form-item label="客户名称：">
                        <!-- <el-input v-model="pageData.companyName" disabled class="inputs" placeholder=""></el-input> -->
                        <el-select v-model="pageData.value" class="inputs" placeholder="请选择客户">
                            <el-option label="data" value="item.value" />
                        </el-select>
                        <span class="formTip">*从客户列表选择</span>
                    </el-form-item>
                    <el-form-item label="地块编号：">
                        <el-input v-model="pageData.companyName" disabled class="inputs" placeholder=""></el-input>
                        <span class="formTip">*自动分配地块编号，无法编号</span>
                    </el-form-item>
                    <el-form-item label="地块名称：">
                        <el-input v-model="pageData.companyName" class="inputs" placeholder="请输入地块名称"></el-input>
                    </el-form-item>
                    <el-form-item label="土地资源类型：">
                        <div class="selectorbtn">
                            <el-select v-model="pageData.value" class="selectorbtn_select selectorbtn_select1" placeholder="园地">
                                <el-option label="data" value="item.value" />
                            </el-select>
                            <el-select v-model="pageData.value" class="selectorbtn_select1 selectorbtn_select_1" placeholder="果园">
                                <el-option label="data" value="item.value" />
                            </el-select>
                            <div class="selectorbtn_btn">添加</div>
                        </div>
                    </el-form-item>
                    <el-form-item label="说明：">
                        <el-input
                            v-model="pageData.companyName"
                            type="textarea"
                            :rows="4"
                            class="inputs"
                            resize="none"
                            placeholder="自动导入土地分类说明"
                        ></el-input>
                    </el-form-item>
                    <el-form-item label="土地资源所有形式：">
                        <el-input v-model="pageData.companyName" class="inputs" placeholder="请输入地块名称"></el-input>
                    </el-form-item>
                </div>
                <div class="formboxitem">
                    <div class="title">GIS信息</div>
                    <el-form-item label="地块位置：">
                        <addRess class="inputs" placeholder="请选择地块地址"></addRess>
                    </el-form-item>
                    <el-form-item label="">
                        <el-input v-model="pageData.companyName" class="inputs" placeholder="请输入详细地址"></el-input>
                    </el-form-item>
                    <mars3d class="mars3ds"></mars3d>
                </div>
                <div class="formboxitem">
                    <el-button class="submitbtn" text bg>添加资源</el-button>
                </div>
            </el-form>
        </el-card>
    </div>
</template>
<script lang="ts" setup>
// import mars3d from "@/components/mars3d.vue";
import { ref } from "vue";
import { useRouter, useRoute } from "vue-router";
import mars3d from "@/views/editorMap/index.vue";

import { companyInfo } from "@/api/team";
const router = useRouter();
const route = useRoute();

const cardType = ref(["法人", "授权管理员"]);
const pageData: any = ref({});

console.log(route);
// 页面类型
const pageType = route.query;
const formDisabled = ref(false);
// if (pageType.type == "1") {
//     // 从我的团队页面进入
//     formDisabled.value = false;
//     route.meta.title = "创建团队";
// } else if (pageType.type == "2") {
//     // 从加入团队页面搜索进入
//     formDisabled.value = true;
//     route.meta.title = "团队详情";
// } else if (pageType.type == "3") {
//     // 从加入团队页面我的邀请进入
//     formDisabled.value = false;
//     route.meta.title = "团队编辑";
// }
const uploadFiles = () => {};
</script>
